﻿using System;
using System.Collections.Generic;

namespace HYCodeBase.WinForm.WinFormRemindSuit
{
	internal class ControlInformationBean : BaseInformationBean
	{
		internal List<AttributeInformationBean> LstAttributions
		{
			get
			{
				return this.m_lstAttributions;
			}
			private set
			{
				this.m_lstAttributions = value;
			}
		}

		internal ControlInformationBean(string inputName, List<AttributeInformationBean> lstInputAttribute) : base(inputName)
		{
			base.StrName = inputName;
			this.m_lstAttributions = lstInputAttribute;
		}

		internal ControlInformationBean(string inputName) : base(inputName)
		{
		}

		internal void AddOneAttribute(AttributeInformationBean inputAttributeBea)
		{
			this.LstAttributions.Add(inputAttributeBea);
		}

		internal AttributeInformationBean GetOneAttributeBeanByName(string inputName)
		{
			foreach (AttributeInformationBean attributeInformationBean in this.m_lstAttributions)
			{
				if (attributeInformationBean.StrAttributeName == inputName)
				{
					return attributeInformationBean;
				}
			}
			return null;
		}

		private List<AttributeInformationBean> m_lstAttributions = new List<AttributeInformationBean>();
	}
}
